from selenium.webdriver.common.by import By
"""以下为项目服务器地址"""
URL = "http://localhost/index.php"

"""以下是登录页面的数据"""

#登录连接
login_link = By.PARTIAL_LINK_TEXT,"登录"
#用户名
login_username = By.CSS_SELECTOR,"#username"
#密码
login_pwd = By.CSS_SELECTOR,"#password"
#验证码
login_verify_code = By.CSS_SELECTOR,"#verify_code"
#登录按钮
login_btn = By.CSS_SELECTOR,".J-login-submit"
#错误提示信息
login_err_info = By.CSS_SELECTOR,".layui-layer-content"
#错误提示框确定按钮
login_err_ok_btn = By.CSS_SELECTOR,".layui-layer-btn0"
#安全退出
login_logout_link = By.PARTIAL_LINK_TEXT,"安全退出"

"""以下是购物车的数据"""
#搜索框
cart_search = By.CSS_SELECTOR,"#q"
#搜索按钮
cart_search_btn = By.CLASS_NAME,"ecsc-search-button"
#加入购物车按钮
cart_addcart_btn = By.PARTIAL_LINK_TEXT,"加入购物车"
#详情加入购物车按钮
cart_join_cart_btn = By.CSS_SELECTOR,"#join_cart"
#fram表单
cart_iframe1 = "layui-layer-iframe1"
#添加成功文本
cart_add_success = By.CSS_SELECTOR,"div[class='conect-title']span"
#添加成功弹窗关闭安妮
cart_add_success_close_btn = By.CSS_SELECTOR,".layui-layer-close1"
#首页
cart_index = By.PARTIAL_LINK_TEXT,"首页"
#数量＋
cart_add_num = By.CSS_SELECTOR,".add"